package com.example.gzysmartcity.ui.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.gzysmartcity.R;

import org.jetbrains.annotations.NotNull;

public class StartVPAdapter extends BaseQuickAdapter<Integer, BaseViewHolder> {

    public StartVPAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, Integer integer) {
        ImageView imageView=baseViewHolder.getView(R.id.image_vp_start);
        Glide.with(getContext()).load(integer).into(imageView);
    }
}
